<template>
	<!-- <view class="content">
		<xz-compute class="container" @equalClick="equalfun"></xz-compute>
	</view> -->
	<view>
		<Calculator  @cancel='cancelBtn' @finish='finishBtn' />
	</view>
</template>

<script>
	import Calculator from '@/component/Calculator.vue'
 export default {
	 components: {
	 	Calculator
	 },
        data() {
            return {
				

            }
        },
        methods: {
            // equalfun(e){
            //     console.log(e);
            //     // e = 最终计算结果
            // },
			cancelBtn() {
				this.showCalculator = false
			},
			finishBtn(data) {
				this.calculatorData.money = data.money
				this.calculatorData.remark = data.remark
				this.calculatorData.time = data.time.year + '-' + data.time.month + '-' + data.time.day
				this.showCalculator = false
			}
        }
    }	
</script>
<style>
	page{
		background: #eee;
	}
</style>
<style scoped lang="less">
	.content{
		height: 100vh;
		
		
	}
</style>